package com.jh.mms.web.action;

import com.jh.mms.service.ILogin;

public class LoginAction extends BaseAction{
	private static final long serialVersionUID = -771683964450035632L;

	private ILogin loginMgr;
	
	private String name;
	private String password;

	public void setLoginMgr(ILogin loginMgr) {
		this.loginMgr = loginMgr;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String login(){
		return loginMgr.login(name, password) ? SUCCESS : INPUT;
		//return "login";
	}
}
